home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 45
/
Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso
/
Aminet
/
game
/
role
/
ldmud-3.2-bin.lha
/
mud
/
doc
/
efun
/
unmkmapping
< prev
next >
Wrap
Text File
|
2001-04-06
|
889b
|
30 lines
SYNOPSIS
mixed* unmkmapping(mapping map)
DESCRIPTION
Take mapping <map> and return an array of arrays with the keys
and values from the mapping.
The return array has the form ({ keys[], data0[], data1[], ... }),
with keys[] being the array of all keys, data0[] the array of
all values in the first column, data1[] the array of all values
in the second column, etc. In particular, the data for key[x]
is stored in data0[x], data1[x], etc.
unmkmapping() is inverse to mkmapping(), so that
apply(#'mkmapping, unmkmapping(m)) == m
holds.
EXAMPLE
unmkmapping(m)
--> returns ({ ({1, 2}), ({ 10, 11 }), ({ 20, 21 }) })
HISTORY
Introduced in LDMud 3.2.6.
SEE ALSO
mappings(LPC), mappingp(E), m_indices(E), m_values(E),
m_delete(E), sizeof(E), widthof(E).